package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Chapter;

@Mapper
public interface ChapterMapper {
    int addChapter(Chapter user);

    Integer updateChapter(Chapter user);

    int deleteChapter(int id);

    Chapter getChapterId(int chapterid, String novelname);

    List<Chapter> getAllChapter();

    List<Chapter> getChapter(@Param("novelname") String novelname);

    Chapter getChapterById(int id);
}
